
<%@page import="com.qdu.entity.Note"%>
<%@page import="com.qdu.entity.Users"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>

<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="css/bootstrap.min.css"/>
        <link rel="stylesheet" href="css/style.css"/>
        <script src="js/jquery-3.4.1.min.js"></script>
        <script src="js/bootstrap.min.js"></script>
        <script src="js/script.js" charset="UTF-8"></script>

        <link rel="stylesheet" type="text/css" href="css/default.css">
        <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:300,700">
        <link rel="stylesheet" href="css/style.min.css">
        <!--<link rel="stylesheet" href="css/bootstrap.min.css"/>-->
        <link rel="stylesheet" href="css/mystyle.css"/>
        <script src="js/jquery-3.4.1.js"></script>	
        <!--<script src="js/bootstrap.min.js"> </script>-->
        <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
        <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
        
            <script type="text/javascript" src="ueditor/ueditor.config.js"></script>  
<script type="text/javascript" src="ueditor/ueditor.all.js"></script>  
<link rel="stylesheet" href="ueditor/themes/default/css/ueditor.css"> 
<script type="text/javascript" charset="utf-8"  
    src="ueditor/lang/zh-cn/zh-cn.js"></script> 
<script type="text/javascript">  
        UE.getEditor("Ncom");  
  </script>   
        
        
        <title>日志详情</title>

    </head>
    <body>


        <!--------------------------上部菜单栏------------------------------>    
        <div style="position: relative;left: 880px;display: none">
            <nav class="class="navbar navbar-default navbar-fixed-top"" >
                 <div class="container"  >
                    <!-- Brand and toggle get grouped for better mobile display -->
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="login.html" style=" font-family:黑体" >注销</a>
                    </div>

                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" >
                        <ul class="nav navbar-nav">

                            <li><a href="AllActivity.jsp" style=" font-family:黑体">所有活动</a></li>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" style="font-family:'黑体'">其他选项 <span class="caret"></span></a>
                                <ul class="dropdown-menu">
                                    <li><a href="#">Action</a></li>
                                    <li><a href="#">Another action</a></li>
                                    <li><a href="#">Something else here</a></li>
                                    <li role="separator" class="divider"></li>
                                    <li><a href="#">Separated link</a></li>
                                    <li role="separator" class="divider"></li>
                                    <li><a href="#">退出登陆</a></li>
                                </ul>
                            </li>
                        </ul>
                        <form class="navbar-form navbar-left" action="gabns">
                            <div class="form-group">
                                <input type="text" class="form-control" placeholder="请输入关键字">
                            </div>
                            <button type="submit" class="btn btn-default">搜索</button>
                        </form>
                        
                    </div><!-- /.navbar-collapse -->
                </div><!-- /.container-fluid -->
            </nav>    
        </div>  


        <!---------------------------------标头---------------------------->
        <div class="page-header">
            <img src="img/19081068d0dc8bcc4447246548cab615.png" style="float:left; position:absolute;top:28px">
            <h1 class="head1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                公益网 <small class="head2"><i>阳光、雨露、雪中炭；真爱、慈善、人间情。</i></small></h1>
        </div>




        <!---------------------------------内容---------------------------->



        <%
            Note n = (Note) request.getAttribute("note");
        %>
        
        <%
        Users user = (Users) session.getAttribute("users");
        %>

  
                
                        <sql:setDataSource  driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" 

                            url="jdbc:sqlserver://localhost:1433;databaseName=PA"
                            user="sa"
                            password="sa" 
                            var="ds" 
                            scope="session" />

        <sql:query dataSource="${ds}" var="rs" scope="page">
            select * from Ncomment where Nno=<%=n.getNno()%>
        </sql:query>



            <div style="position: absolute ;left: 80px;top: 150px;width: 500px">
                <p style="font-weight:bold;font-size: 20px">发布用户编号：<%=n.getUno() %></p>
                    <br>
                    <br>
                    <p style="font-weight:bold;font-size: 20px">发布用户名：<%=n.getUname() %></p>
                    <br>
                    <br>
                    <p style="font-weight:bold;font-size: 20px">发布时间：<%=n.getNst() %></p>
                    <br>
                    <br>
                    <p style="font-weight:bold;font-size: 20px">发布主题：<%=n.getNtopic() %></p>
                    <br>
                    <br>
                    <p style="font-weight:bold;font-size: 20px">发布内容：<%=n.getNnr() %></p>
                    <br>
                    <br>
                </div>

                    <div style="position: absolute;left:1000px;top: 150px">
                <c:forEach items="${rs.rows}" var="row">
                    <div style="width: 400px">
                            <p style="font-weight:400;font-size: 15px">用户编号：${row.Uno}</p>
                            <p style="font-weight:400;font-size: 15px">用户名：${row.Uname}</p>
                            <p style="font-weight:400;font-size: 15px">评论：${row.Ncom}</p>
                            <br>
                            <br>
                            <br>
                    </div>
                </c:forEach>  
                    </div> 


                <form class="form-inline" id="add_Notepinglun" style="position: absolute;top: 550px;left: 70px"> 
                    <label for="Uno" style="display:none;">用户编号：</label>
                    <input id="Uno" type="text" name="Uno" value="<%=user.getUno()%>" readonly  class="form-control" style="display:none;">
                    <label for="Uname" style="display:none;">用户名：</label>
                    <input id="Uname" type="text" name="Uname" value="<%=user.getUname()%>" readonly  class="form-control" style="display:none;">
                    <label for="Ncom"></label>
                    <textarea id="Ncom"  name="Ncom"  style="width: 520px; height: 200px;"></textarea>
                    <label for="Nno" style="display:none;" style="display:none;">日志编号：</label>
                    <input id="Nno" type="text" name="Nno" value="<%=n.getNno() %>" readonly class="form-control" style="display:none;">
                    <button id="btn_Notepinglun" class="btn btn-info " >评论</button>
                </form>

                </body>
                </html>
